#
# DMA Controllers
#

obj-y += lombo_dma.o

ifeq ($(CONFIG_ARCH_LOMBO_N7V1), y)
DMA_CSP_PLATFORM := n7v1
else ifeq ($(CONFIG_ARCH_LOMBO_N7V3), y)
DMA_CSP_PLATFORM := n7v1
else ifeq ($(CONFIG_ARCH_LOMBO_N7V5), y)
DMA_CSP_PLATFORM := n7v5
else ifeq ($(CONFIG_ARCH_LOMBO_N5V1), y)
DMA_CSP_PLATFORM := n7v5
else ifeq ($(CONFIG_ARCH_LOMBO_N9V1), y)
DMA_CSP_PLATFORM := n9v1
else ifeq ($(CONFIG_ARCH_LOMBO_N9V3), y)
DMA_CSP_PLATFORM := n9v1
endif

SOURCE := $(srctree)/$(src)/csp/$(DMA_CSP_PLATFORM)/dma_operate.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(DMA_CSP_PLATFORM)/
else
obj-y += liblombo_dma.o
$(obj)/liblombo_dma.o: $(src)/csp/$(DMA_CSP_PLATFORM)/liblombo_dma
	cp $< $@
endif
